package cn.alise.qdp.service.user;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.alise.qdp.mapper.user.UserRoleMapper;
import cn.alise.qdp.model.user.UserRole;

@Service
@Transactional(rollbackFor = Exception.class)
public class UserRoleService {

	@Resource(name = "userRoleMapper")
	private UserRoleMapper userRoleMapper;
	
	public List<UserRole> gets(Map<String, Object> args){
		return this.userRoleMapper.gets(args);
	}
	
	public List<UserRole> list(UserRole args) {
		return this.userRoleMapper.list(args);
	}
	
	public List<UserRole> page(Map<String, Object> args) {
		return this.userRoleMapper.page(args);
	}
	
	public int total(UserRole args) {
		return this.userRoleMapper.total(args);
	}
	
	public int delete(UserRole args) {
		return this.userRoleMapper.delete(args);
	}
	
	public int save(UserRole args) {
		return this.userRoleMapper.insert(args);
	}
	
	public int update(UserRole args) {
		return this.userRoleMapper.update(args);
	}
}
